package com.sh.data.engine.domain.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sh.data.engine.domain.common.model.enums.CommonConfigKeyEnum;
import com.sh.data.engine.repository.dao.common.entity.CommonConfigEntity;

import java.util.Date;

/**
 * @author boyue.wjl
 */
public interface ICommonConfigService extends IService<CommonConfigEntity> {

    /**
     * 字典映射任务执行最后时间
     *
     * @return
     */
    Date getDictionaryMappingTaskLastExeTime();

    /**
     * 保存配置
     *
     * @param configKeyEnum
     * @param value
     */
    void save(CommonConfigKeyEnum configKeyEnum, String value);
}
